package com.thermofisher.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.thermofisher.beans.Argument;
import com.thermofisher.beans.DataDictionary;
import com.thermofisher.beans.Project;
import com.thermofisher.beans.SearchProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author py
 * @since 2020-01-13
 */
@Mapper
public interface ProjectMapper extends BaseMapper<Project>
{
    List<Project> getProjectList(Argument argument);

    Project getProjectDetails(@Param("projectNo") String projectNo, @Param("userId") String userId);

    List<DataDictionary> getProjectType();

    List<DataDictionary> getSupportType();

    List<DataDictionary> getProjectStatue();

    List<DataDictionary> getProjectSubFilter(@Param("id") String id);

    List<DataDictionary> getCompanySupport(@Param("projectNo") String projectNo);

    List<Project> getProjectWithFilter(SearchProject searchProject);

    Project getProjectById(@Param("projectNo") String projectNo);

    int getEmail(@Param("email") String email);

}
